//
//  BZCommon.swift
//  weibo
//
//  Created by zzx on 2017/7/30.
//  Copyright © 2017年 zzx. All rights reserved.
//

import UIKit

///切换视图控制器的通知名
let SwitchRootVCNotificationName = "SwitchRootVCNotificationName"

///首页cell的重用标记
let HomeCellIdentifier = "HomeCellIdentifier"

//首页cell子控件的间距
let HomeCellMargin: CGFloat = 10

///MianScreen的宽度
let SCREEN_WIDTH = UIScreen.main.bounds.width
///MianScreen的高度
let SCREEN_HEIGHT = UIScreen.main.bounds.height



//创建随机色
func RandomColor() -> UIColor {

    let red = CGFloat(arc4random_uniform(256)) / 255.0
    
    let green = CGFloat(arc4random_uniform(256)) / 255.0
    
    let blue = CGFloat(arc4random_uniform(256)) / 255.0
    
    let color = UIColor(red: red, green: green, blue: blue, alpha: 1)
    
    return color
    
}
